//
//  GiftPackage.swift
//  七哥直播
//
//  Created by seven on 2017/12/26.
//  Copyright © 2017年 seven. All rights reserved.
//

import Foundation

class GiftPackage: BaseModel{
    @objc var t: Int = 0
    @objc var titles: String = ""
    @objc var list: [GiftModel] = [GiftModel]()
    override func setValue(_ value: Any?, forKey key: String) {
        if key == "list" {
            if let listArray = value as? [[String:Any]]{
                for listDict in listArray{
                    list.append(GiftModel(dict: listDict))
                }
            }
        }else{
            super.setValue(value, forKey: key)
        }
    }
}
